//
//  AddCell.m
//  EducationAdminClient
//
//  Created by KWSD_F on 16/4/5.
//  Copyright © 2016年 周佳兴. All rights reserved.
//

#import "AddCell.h"
@implementation AddCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
   
    
    
    
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier];
    if(self){
        
        [self creatUI];
        
    }
    return self;
    
    
}

- (void)creatUI{
    _leftBtn = [NormalButton buttonWithType:UIButtonTypeCustom];
    _leftBtn.frame = CGRectMake(0, 0, self.contentView.frame.size.width/2, self.contentView.frame.size.height);
    [self.contentView addSubview:_leftBtn];
    [_leftBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//    [_leftBtn setBackgroundColor:[UIColor yellowColor]];
    [_leftBtn setTitle:@"左边" forState:UIControlStateNormal];
    //    [_leftBtn addTarget:self action:@selector(setSelector:) forControlEvents:UIControlEventTouchUpInside]
    _leftBtn.userInteractionEnabled = YES;
    
    
    _rightBtn = [NormalButton buttonWithType:UIButtonTypeCustom];
    [_rightBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _rightBtn.frame = CGRectMake(self.contentView.frame.size.width/2, 0, self.contentView.frame.size.width/2, self.contentView.frame.size.height);
    [self.contentView addSubview:_rightBtn];
    _rightBtn.userInteractionEnabled = YES;
}


-(void)createBtnClickAddTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents button:(UIButton *)btn
{
    [btn addTarget:target action:action forControlEvents:controlEvents];
    return ;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
